import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      // 如果嵌套路由中的 path 为空,
      // 当我们访问父级路由时,会默认展示该规则的对应组件
      // 可以理解为,是当前嵌套路由的默认路由
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/index'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      name: 'EmployeesDetail',
      path: 'detail',
      component: () => import('@/views/employees/detail'),
      hidden: 'true'
    }
  ]
}
